<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			#obox{
				width: 300px;
				height: 10px;
				border: solid 1px black;
				border-radius: 10px;
				overflow: hidden;
			}
			#box{
				height: 10px;
				width: 0px;
				background: red;
			}
		</style>
		<script src="js/jquery-3.6.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function(){
				var w = 0;
				var t1 = setInterval(function(){
					w++;
					$("#box").css("width",w+"%");
					$("#p1").html(w+"%")
					if(w==100){
						clearInterval(t1);
					}
				},20)
			})
		</script>
	</head>
	<body>
		<h3>进度条效果</h3>
		<div id="obox">
			<div id="box"></div>
		</div>
		<p id="p1">0%</p>
	</body>
</html>
